package utils;

public interface AppConstants {

	public final String SERVER_SUCC = "sucess";
	public final String SERVER_FAIL = "fail";
	final String MSG_FAIL = "{\"status\": \"" + SERVER_FAIL + "\"}";
	final String MSG_SUCESS = "{\"status\": \"" + SERVER_SUCC + "\"}";

	/**
	 * Notification Types
	 */
	int OFFER = 0;
	int REQUEST = 1;
	int ALARM = 2;

	/**
	 * User Permissions
	 */
	int ALWAYS_ALLOW = 0;
	int ALWAYS_ASK = 1;
	int NEVER_ALLOW = 2;
	public final String[] PERMISSIONS = { "Accepted", "Pending", "Rejected" };

	/**
	 * C2DM collapse keys
	 */

	static final String WELCOME_CK = "w0";
	static final String CHANGE_OUTGOING_CK = "O0";
	static final String CHANGE_INCOMING_CK = "In0";
	static final String CHANGE_SELF_CK = "s0";
	static final String NEW_REQUEST_CK = "r0";
	static final String NEW_ARRIVAL_CK = "a0";

	/**
	 * C2DM Messages
	 */
	static final String WELCOME_MSG = "welcome";
	static final String NEW_ARRIVAL_MSG = "newArrival";
	static final String CHANGE_INCOMING_MSG = "changeIncoming";
	static final String CHANGE_OUTGOING_MSG = "changeOutgoing";
	static final String CHANGE_SELF_MSG = "changeSelf";
	static final String NEW_REQUEST_MSG = "newRequest";

	/**
	 * Notification Parameters
	 */
	public static final String START_DATE_PARAM = "start";
	public static final String END_DATE_PARAM = "end";
	public static final String PLACE_PARAM = "place";
	public static final String TYPE_PARAM = "type";
	public static final String WHEN_PARAM = "when";
	public static final String NTYPE_PARAM = "ntype";
	public static final String ID_OWNER_PARAM = "idOwner";
	public static final String PHONE_RECEIVER_PARAM = "phoneReceiver";
	public static final String PHONE_SENDER_PARAM = "phoneSender";
}
